{% extends "base.html" %}
{% comment %}

Main page to authenticate users.

{% endcomment %}

{% block title %}
    登陆
{% endblock %}

{% block head %}
    <h1>民生银行运维系统</h1>
    <h2>登陆</h2>
{% endblock %}

{% block body %}


    <section>
        {% if form.errors %}
            <p>密码错误，请重新登陆！</p>
        {% endif %}

        <form method="post" action=".">
            {% csrf_token %}
            <p>
                <label for="id_username">用户名:</label>
                {{ form.username }}
            </p>
            <p>
                <label for="id_password">密码:</label>
                {{ form.password }}
            </p>
            {% if next %}
                <input type="hidden" name="next" value="{{ next }}" />
            {% else %}
                <input type="hidden" name="next" value="/portal/" />
            {% endif %}
            <input type="submit" value="登陆" />
        </form>
    </section>
{% endblock %}